package practice;

public class practice003 {
	// 分东西A分5份余1（舍），BCDE如前重复，问一共有多少个
	public static void main(String[] args) {
		int i, j, t;
		for (int num = 1; num < 10000; num = num + 5) {
			t = 0;
			i = num;
			for (j = 0; j < 5; j++) {
				if (i % 5 == 1) {
					i = i - 1;
					i = i / 5 * 4;
					t++;
				}
				if (t == 5) {
					System.out.println(num);
				}
			}
		}

	}

}
